﻿using System.Threading.Tasks;
using U.B.DoMain.工作流引擎.Models;
using U.B.ReadApi.Command.工作流Command;

namespace U.B.ReadApi.CommandHander.工作流CommandHander
{
    public interface IWorkflow
    {
        Task<bool> ExecuteApprovalWorkflow(ApprovalWorkflowData data);
        Task<bool> StartApprovalProcess(int leaveAppId, int leaderId);
        Task<bool> CompleteApproval(int appId, int result, string reason);
    }
}
